


////////////////////////////////////////////////////////////
//  ESS System Information
////////////////////////////////////////////////////////////
#define _ESS_Major_Version_							31    		//1bytes
#define _ESS_Minor_Version_							7    		//1bytes
#define _ESS_Serial_Num_                50    		//2bytes

#define _ADG8_System_DSG_RefVol_ADC_            1794//ADG8_SystemRefVol_ADC  1833 = 1.1V ; 2bytes
#define _ADG8_System_CHG_RefVol_ADC_            1794//ADG8_SystemRefVol_ADC  1833 = 1.1V ; 2bytes
#define _ADG8_SystemOffDSGCurrentTh_ADC_       	2497//ADG8_SystemOffDSGCurrentTh_ADC  2213 =-10A (> 1.1V) ; 2bytes
#define _ADG8_SystemOffCHGCurrentTh_ADC_       	1145//ADG8_SystemOffCHGCurrentTh_ADC  1529 = 8A (< 1.1V) ; 2bytes          
#define _ADG8_System_DSG_Factor_                0.0256f//ADG8_System factor adc/mA ; 4bytes
#define _ADG8_System_CHG_Factor_                0.024f//ADG8_System factor adc/mA ; 4bytes
//////////////////////////////////////////////////////////
// OPA2376, 
// gain : 140K/1K, getting current range 7.5A ~ -7.5A (for refrernce 2.5V ADC)
// 1A ~= 540 ADC codes, 0.5A ~= 270 ADC codes.
// getCHGCurrent() & getDSGCurrent();
//////////////////////////////////////////////////////////

//#define _OPA_SystemDSGCurrentTh_ADC_            120	//OPA_SystemDSGCurrentTh_ADC  273 = 0.5A ; 2bytes
//#define _OPA_SystemCHGCurrentTh_ADC_            120	//OPA_SystemCHGCurrentTh_ADC  273 = 0.5A ; 2bytes
#define _OPA_SystemDSGCurrentTh_ADC_            1803	//OPA_SystemDSGCurrentTh_ADC  273 = 0.5A ; 2bytes
#define _OPA_SystemCHGCurrentTh_ADC_            1784	//OPA_SystemCHGCurrentTh_ADC  273 = 0.5A ; 2bytes

#define _OPA_SystemDSGCurrentOffset_ADC_        0	//_OPA_SystemDSGCurrentOffset_ADC_  273 = 0.5A ; 2bytes
#define _OPA_SystemCHGCurrentOffset_ADC_        0	//_OPA_SystemCHGCurrentOffset_ADC_  273 = 0.5A ; 2bytes
#define _OPA_System_DSG_Factor_                 0.407f//_OPA__System factor adc/mA ; 4bytes
#define _OPA_System_CHG_Factor_                 0.416f//_OPA__System factor adc/mA ; 4bytes

